import java.util.*;

/**
 * @author gao
 * @date 2025/6/4 15:13
 */

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String line = scanner.nextLine();

        Map<Character, Integer> map = new LinkedHashMap<>();

        char[] chars = line.toCharArray();
        for (char ch : chars) {
            if (Character.isLetter(ch)) {
                //放入哈希表中，统计字母出现次数
                map.put(ch, map.getOrDefault(ch, 0) + 1);
            }
        }

        Set<Map.Entry<Character,Integer>> entrys = map.entrySet();
        for (Map.Entry<Character,Integer> entry : entrys) {
            System.out.println(entry.getKey() + ":" + entry.getValue());
        }
    }
}